The link hot spot atom specifies information for hot spots of type kQTVRHotSpotLinkType ('link'). Its atom type is thus 'link'. The link hot spot atom contains specific information about a link hot spot.
The structure of a link hot spot atom is defined by the VRLinkHotSpotAtom data type:
typedef struct VRLinkHotSpotAtom {
UInt16 majorVersion;
UInt16 minorVersion;
UInt32 toNodeID;
UInt32 fromValidFlags;
Float32 fromPan;
Float32 fromTilt;
Float32 fromFOV;
FloatPoint fromViewCenter;
UInt32 toValidFlags;
Float32 toPan;
Float32 toTilt;
Float32 toFOV;
FloatPoint toViewCenter;
Float32 distance;
UInt32 flags;
UInt32 reserved1;
UInt32 reserved2;
} VRLinkHotSpotAtom, *VRLinkHotSpotAtomPtr;
Certain fields in the link hot spot atom are not currently used by QuickTime VR. The fromValidFlags field is generally set to zero and the from fields are not used. However, these fields could be quite useful if you have created a transition movie from one node to another. The from angles can be used to swing the current view of the source node to align with the first frame of the transition movie. The distance field is intended for use with 3D applications, but is also not currently used by QuickTime VR.
The toValidFlags field in the link hot spot atom structure specifies which view settings are to be used when moving to a destination node from a hot spot. You can use these bit flags to specify a value for that field:
enum {
kQTVRValidPan = 1 << 0,
kQTVRValidTilt = 1 << 1,
kQTVRValidFOV = 1 << 2,
kQTVRValidViewCenter = 1 << 3
};
| Previous | Chapter Contents | Chapter Top | Next |